package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum GenderStatus {

    genderStatus_01(101, "男"),
    genderStatus_02(102, "女");


    private Integer genderStatus;
    private String genderStatusName;


    public static String getGenderStatusValue(int index) {
        for (GenderStatus value : GenderStatus.values()) {
            if (value.getGenderStatus() == index) {
                return value.getGenderStatusName();
            }
        }
        return null;
    }
}
